const router = require('koa-router')();

router.prefix('/daoke');

router.get('/',(ctx,next)=>{
    ctx.session.counter++;
    ctx.cookies.set('daokeCookie',Math.random())
    ctx.body = 'daoke 首页'

});
router.get('/blog',(ctx,next) =>{

    ctx.body = {
        title:'daoke/blog 页面',
        content:'blog内容……',
        daokeCookie: ctx.cookies.get('daokeCookie')
    }
});
module.exports = router;
